package com._21cn.product.web.validator;

import com._21cn.product.entity.WatchCate;
import com._21cn.framework.utils.StringUtil;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("watchCateValidator")
public class WatchCateValidator implements Validator {

    public boolean supports(Class<?> clazz) {
        return WatchCate.class.equals( clazz );
    }

    public void validate(Object target, Errors errors) {
        WatchCate obj = (WatchCate)target;
        //TODO
    }
}